package com.gongj.aop.service.impl;

import com.gongj.aop.service.AopService;
import com.gongj.aop.zhujie.Gongj;
import org.springframework.stereotype.Service;

/**
 * @program: aop
 * @description:
 * @author: gongj
 * @Description: TODO
 * @create: 2020-07-19 19:41
 **/
@Service
public class AopServiceImpl implements AopService {

    @Override
    public void findById(Long id) {
        System.out.println("根据id查询=====" + id);
    }

    @Override
    public void findByName(@Gongj String name) {
        System.out.println("根据name查询=====" + name);
    }

    @Gongj
    @Override
    public void findGongj() {
        System.out.println("调用带有注解的方法findGongj=====");
    }

    @Override
    public void updateId(Long id, String name) {
        System.out.println("根据id修改name" + id +">>>>>" + name );
    }
}
